Update User ExtraField Validation
PUT : http://<base_url>/digipay/v3/user/user_extrafield_validation
This API is used to update new user extra field validation data into the system.
BODY PARAMS:-
Parameter | Type | Description | Value |
---|---|---|---|
id | String | a unique id assign to user to retrive to user extra field validation detail | 4bc6ba63954641c8976488be871fd41a |
extra_field_key | String | Represents an additional key associated with the field, possibly for metadata or referencing purposes. | sample_key |
field_validation_key | String | Refers to a key used for validation purposes, often in a validation rule configuration. | validation_key |
field_validation_value | String | Holds a sample validation value or pattern that data should adhere to. | validation_value |
field_validation_min | Double | Indicates the minimum valid value for the field, useful in numeric or range-based validations. | 0.5 |
field_validation_max | Double | Represents the maximum valid value for the field, also relevant in numeric or range-based validations. | 10 |
field_validation_error | String | Contains an error message or description to be displayed when validation fails. | Invalid value |
HEADERS:-
Parameter | Type | Description | Value |
---|---|---|---|
Authorization | String | It is a combination of type and token to authenticate user for the given token | Token duik7309njdlkhdauhknksadhjkas986876sd873j |
CompanyID | String | Company_id is a unique primary id, that is represent company detail | 76bc712200ca444fa334f9e55e5fd7a8 |
Request Body:-
Request Example
curl --request PUT \
--url http://192.168.1.102:8014/digipay/v3/user/user_extrafield_validation \
--header 'Authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI2NWY0ZDI1MDliZmU0NTBmYTg4MTVhNTU5Njk3YmM0NyIsInJvbGVzIjpbIlJPTEVfQURNSU4iXSwiZXhwIjoxNjkzNTIxOTU1fQ.9oWwUzlFzmYB1ZOhaVamxKJH6DsMO8tFue2kbg2YyoI' \
--header 'CompanyID: 76bc712200ca444fa334f9e55e5fd7a8' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": "4bc6ba63954641c8976488be871fd41a",
"extra_field_key": "sample_key",
"field_validation_key": "validation_key",
"field_validation_value": "validation_value",
"field_validation_min": 0.5,
"field_validation_max": 10,
"field_validation_error": "Invalid value"
}
'
Response:-
Response 200(OK)
{
"success": 1,
"error": [],
"data": {
"message": "USER_USER_EXTRAFIELD_VALIDATION_DATA_UPDATE_SUCCESS",
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}
RESPONSES :-
Status Code | Description |
---|---|
200 | OK |
400 | BAD REQUEST |
404 | NOT FOUND |
500 | INTERNAL SERVER ERROR |